

ARCH=$(shell uname -m)

CFLAGS=`mylibs-config --cldflags` -fopenmp -std=gnu++0x -pedantic -Wextra -Wall

BINARY = transform.$(ARCH)

transform: transform.cpp
	g++ transform.cpp -o $(BINARY) $(CFLAGS)  $(OPT) `Magick++-config --cppflags` `Magick++-config --libs`
	cd $(MYLOCAL)/bin && ln -sf  $(PWD)/$(BINARY) $(BINARY)
	mkdir -p  ~/.bash_completion.d
	$(BINARY) --bash_completion && cp $(BINARY).bash_completion ~/.bash_completion.d/

clean:
	rm -f transform.$(ARCH) *.o
